package com.yonyou.pmclouds.basecom.condition;

import com.yonyou.iuap.tenant.utils.TenantSdkPropertyUtil;
import com.yonyou.pmclouds.ApplicationConsts;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;

public class PublicDeployCondition implements Condition {
    @Override
    public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
        String sys = TenantSdkPropertyUtil.getPropertyByKey("sysid");
        return ApplicationConsts.APPLICATION_ID.equals(sys);
    }
}